<?php

namespace app\massage\controller;
use app\ApiRest;
use think\Response;

class Util
{
    /**
     * 开发阶段前端
     * @return
     */
    public function wxh5_login_middle()
    {
        $url = request()->get('url');
//        var_dump($url);
//        exit;
        if (!$url){
            $this->error('url地址为空');
        }
        $param = "";
        $code = request()->get('code');
        if (isset($code)){
            $param = "code=".$code;
        }
//        $urlP = parse_url($url);
//
        $jump = $url."&".$param;
        return Response::create($jump, 'redirect');
    }
}